package cn.com.utt.common.vo;

import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class TableInput {
	/*
	 * 开始索引
	 */
	@NotNull
	@Min(0)
	private Integer start;

	/*
	 * 每页行数
	 */
	@NotNull
	@Min(0)
	private Integer rows;

	// @NotNull
	private List<SearchParameter> search;

	/*
	 * 排序永远只有一个会生效，所以不存在多列同时排序的问题
	 */
	// @NotNull
	private OrderParameter order;

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public List<SearchParameter> getSearch() {
		return search;
	}

	public void setSearch(List<SearchParameter> search) {
		this.search = search;
	}

	public OrderParameter getOrder() {
		return order;
	}

	public void setOrder(OrderParameter order) {
		this.order = order;
	}

}
